package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.OperateLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LogMapper {

    /**
     * 分页查询
     * @return
     */
    @Select("select ol.*, e.name operateEmpName from operate_log ol,emp e where ol.operate_emp_id=e.id")
    public Page<OperateLog> page();
}
